/*
 * Recomendacao.java
 *
 * Created on October 12, 2007, 10:46 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package petstore.model;

import java.util.Date;
import javax.persistence.AttributeOverride;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * Entity class Recomendacao
 * 
 * @author Tom Hayden
 */
@Entity
@Table(name = "recomendacao")
@AttributeOverride(name="id", column=@Column(name="nrrecomendacao"))
public class Recomendacao extends BusinessObject {

    @Column(name = "dtrecomendacao")
    @Temporal(TemporalType.TIMESTAMP)
    private Date dataRecomendacao;

    @Column(name = "txrecomendacao")
    private String recomendacao;
    
    @Column(name = "ativo")
    private boolean active;
    
    /** Creates a new instance of Recomendacao */
    public Recomendacao() {
    }

    public Date getDataRecomendacao() {
        return dataRecomendacao;
    }

    public void setDataRecomendacao(Date dataRecomendacao) {
        this.dataRecomendacao = dataRecomendacao;
    }

    public String getRecomendacao() {
        return recomendacao;
    }

    public void setRecomendacao(String recomendacao) {
        this.recomendacao = recomendacao;
    }

    public boolean isActive() {
        return active;
    }

    public void setActive(boolean active) {
        this.active = active;
    }

}
